home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Think Class Libraries / WASTE TCL 1.8 / WASTE TCL 1.8 ƒ / CWASTEStyleTask.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  1.1 KB  |  59 lines  |  [TEXT/MMCC]

  1. /*
  2.  *    File:        CWASTEStyleTask.h
  3.  *    System:        Mark's Class Library
  4.  *    Evironment:    MacOS 7.0/THINK C 6.0/TCL 1.1.3
  5.  *    Author:        Mark Alldritt
  6.  *
  7.  *
  8.  *        Copyright © 1994    All Rights Reserved
  9.  *        Mark Alldritt
  10.  *        1571 Deep Cove Road
  11.  *        N. Vancouver, B.C. CANADA
  12.  *
  13.  *    
  14.  *    Notes:
  15.  *
  16.  *    This source file depends on the "Scriptable TCL+MacTraps" pre-compiled header for all TCL
  17.  *    definitions.
  18.  *
  19.  *
  20.  *    Edit History:
  21.  *
  22.  *    V1-0.0    Mark Alldritt    10-May-1994
  23.  *    - Initial version of module.
  24.  *
  25.  *            Adapted to THINK C / TCL 1.1.3     (Roms, 95/11/08)
  26.  */
  27.  
  28. #pragma once
  29.  
  30. #include "CTextStyleTask.h"
  31.  
  32. class CWASTEText;
  33.  
  34. class CWASTEStyleTask : public CTextStyleTask
  35. {
  36. public:
  37.  
  38. #ifndef THINK_C
  39.                  CWASTEStyleTask( CWASTEText *aTextPane, long aStyleCmd, short firstTaskIndex);
  40.                  ~CWASTEStyleTask(void);
  41. #else
  42.     void            IWASTEStyleTask( CWASTEText *aTextPane, long aStyleCmd, short firstTaskIndex);
  43.     virtual void    Dispose(void);
  44. #endif // THINK_C
  45.                  
  46.                  
  47.     virtual void Do(void);    //mf to allow cmdJustify
  48.     virtual void Undo( void);    
  49.  
  50. protected:
  51.  
  52.     StScrpHandle    oldStyles;
  53.     long            selStart, selEnd;
  54.     
  55.     virtual void SaveStyle( void);
  56.     virtual void RestoreStyle( void);
  57.     
  58. };
  59.